package com.nancy.java_design.responsibility.demo1;

public class GroupLeader extends Handler {

    //处理请求
    @Override
    public void handleRequest(RequestLeave request) {
        if (request.getDays() <= NUM_THREE) {
            System.out.println("小组长同意了");
        } else {
            handler.handleRequest(request);
        }
    }
}
